<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.0.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">
  <link rel="alternate" href="/atom.xml" title="刘攀的个人专栏" type="application/atom+xml">

<link rel="stylesheet" href="/css/main.css">

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Lato:300,300italic,400,400italic,700,700italic&display=swap&subset=latin,latin-ext">
<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">


<script id="hexo-configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    hostname: new URL('http://liupan.run').hostname,
    root: '/',
    scheme: 'Pisces',
    version: '7.5.0',
    exturl: false,
    sidebar: {"position":"right","Pisces | Gemini":240,"display":"post","offset":12,"onmobile":false},
    copycode: {"enable":false,"show_result":false,"style":null},
    back2top: {"enable":true,"sidebar":false,"scrollpercent":false},
    bookmark: {"enable":false,"color":"#222","save":"auto"},
    fancybox: false,
    mediumzoom: false,
    lazyload: false,
    pangu: false,
    algolia: {
      appID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    },
    localsearch: {"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},
    path: 'search.xml',
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    sidebarPadding: 40
  };
</script>

  <meta name="description" content="将chinesepoetry导入至mariadb   主题">
<meta name="keywords" content="mariadb,chinesepoetry,json">
<meta property="og:type" content="article">
<meta property="og:title" content="010-诗词json导入至mariadb">
<meta property="og:url" content="http:&#x2F;&#x2F;liupan.run&#x2F;2019&#x2F;12&#x2F;30&#x2F;010-%E8%AF%97%E8%AF%8Djson%E5%AF%BC%E5%85%A5%E8%87%B3mariadb&#x2F;index.html">
<meta property="og:site_name" content="刘攀的个人专栏">
<meta property="og:description" content="将chinesepoetry导入至mariadb   主题">
<meta property="og:locale" content="zh-CN">
<meta property="og:updated_time" content="2020-01-02T11:44:32.577Z">
<meta name="twitter:card" content="summary">

<link rel="canonical" href="http://liupan.run/2019/12/30/010-%E8%AF%97%E8%AF%8Djson%E5%AF%BC%E5%85%A5%E8%87%B3mariadb/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome: false,
    isPost: true,
    isPage: false,
    isArchive: false
  };
</script>

  <title>010-诗词json导入至mariadb | 刘攀的个人专栏</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-meta">

    <div>
      <a href="/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">刘攀的个人专栏</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
        <p class="site-subtitle">面朝大海,春暖花开</p>
  </div>

  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>
</div>


<nav class="site-nav">
  
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签<span class="badge">28</span></a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类<span class="badge">0</span></a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档<span class="badge">20</span></a>

  </li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>

</nav>
  <div class="site-search">
    <div class="popup search-popup">
    <div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocorrect="off" autocapitalize="none"
           placeholder="搜索..." spellcheck="false"
           type="text" id="search-input">
  </div>
  <span class="popup-btn-close">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div id="search-result"></div>

</div>
<div class="search-pop-overlay"></div>

  </div>
</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block " lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="http://liupan.run/2019/12/30/010-%E8%AF%97%E8%AF%8Djson%E5%AF%BC%E5%85%A5%E8%87%B3mariadb/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="liupan">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="刘攀的个人专栏">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          010-诗词json导入至mariadb
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2019-12-30 19:13:43" itemprop="dateCreated datePublished" datetime="2019-12-30T19:13:43+08:00">2019-12-30</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-01-02 19:44:32" itemprop="dateModified" datetime="2020-01-02T19:44:32+08:00">2020-01-02</time>
              </span>

          

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <blockquote>
<p>将chinesepoetry导入至mariadb</p>
</blockquote>
<blockquote>
<p>主题</p>
</blockquote>
<a id="more"></a>

<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">git clone https://github.com/chinese-poetry/chinese-poetry.git</span><br><span class="line">mysql -u root -p</span><br><span class="line"><span class="meta">&gt;</span><span class="bash"> create database myhome;</span></span><br></pre></td></tr></table></figure>



<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br></pre></td><td class="code"><pre><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####唐宋诗数据表</span></span></span><br><span class="line">create table poetry (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  author_id int(11) default 0,</span><br><span class="line">  title varchar(255) not null,</span><br><span class="line">  content text not null,</span><br><span class="line">  yunlv_rule text default null,</span><br><span class="line">  author varchar(255) not null,</span><br><span class="line">  dynasty char(1) not null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####唐宋诗作者数据表</span></span></span><br><span class="line">create table poetry_author (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  name varchar(255) not null,</span><br><span class="line">  intro text default null,</span><br><span class="line">  dynasty char(1) not null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####宋词作者数据表</span></span></span><br><span class="line">create table poems_author (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  name varchar(255) not null,</span><br><span class="line">  intro_l text default null,</span><br><span class="line">  intro_s text default null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####宋词数据表</span></span></span><br><span class="line">create table poems (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  author_id int(11) default 0,</span><br><span class="line">  title varchar(255) not null,</span><br><span class="line">  content text not null,</span><br><span class="line">  author varchar(255) not null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####论语数据表</span></span></span><br><span class="line">create table lunyu (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  chapter varchar(255) not null,</span><br><span class="line">  content text not null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br><span class="line"></span><br><span class="line"><span class="meta">#</span><span class="bash"><span class="comment">####诗经数据表</span></span></span><br><span class="line">create table shijing (</span><br><span class="line">  id int(11) not null primary key auto_increment,</span><br><span class="line">  title varchar(255) not null,</span><br><span class="line">  chapter varchar(255) not null,</span><br><span class="line">  section varchar(255) not null,</span><br><span class="line">  content text not null</span><br><span class="line">) engine = myisam, charset=utf8;</span><br></pre></td></tr></table></figure>

<h2 id="直接使用SQL"><a href="#直接使用SQL" class="headerlink" title="直接使用SQL"></a>直接使用SQL</h2><p>git clone <a href="https://github.com/KomaBeyond/chinese-poetry-mysql.git" target="_blank" rel="noopener">https://github.com/KomaBeyond/chinese-poetry-mysql.git</a></p>
<figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">mysqldump -u username -p  db_name &gt;dbname.sql  # 导出数据库</span><br><span class="line">mysqldump -u username -p  db_name tab_name &gt; db_name_tabname.sql  #仅导出指定表</span><br><span class="line">mysqldump -u username -p -d --add-drop-table dbname &gt; dbname.sql # -d不导出数据 --add-drop-table在添加前先执行droptable</span><br><span class="line">use dbname;</span><br><span class="line">source dbname.sql;</span><br></pre></td></tr></table></figure>

<h2 id="flask配置多个数据库"><a href="#flask配置多个数据库" class="headerlink" title="flask配置多个数据库"></a>flask配置多个数据库</h2><h3 id="配置"><a href="#配置" class="headerlink" title="配置"></a>配置</h3><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">SQLALCHEMY_DATABASE_URI = &apos;postgres://localhost/main&apos;</span><br><span class="line">SQLALCHEMY_BINDS = &#123;</span><br><span class="line">    &apos;users&apos;:        &apos;mysqldb://localhost/users&apos;,</span><br><span class="line">    &apos;appmeta&apos;:      &apos;sqlite:////path/to/appmeta.db&apos;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>

<h3 id="引用binds"><a href="#引用binds" class="headerlink" title="引用binds"></a>引用binds</h3><p>在models定义的时候不指定就默认数据库</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">User</span><span class="params">(db.Model)</span>:</span></span><br><span class="line">    __bind_key__ = <span class="string">'users'</span> <span class="comment">#当你声明模型时，你可以用 bind_key 属性指定 bind:</span></span><br><span class="line">    id = db.Column(db.Integer, primary_key=<span class="literal">True</span>)</span><br><span class="line">    username = db.Column(db.String(<span class="number">80</span>), unique=<span class="literal">True</span>)</span><br></pre></td></tr></table></figure>

<p>bind key 内部存储在表的 info 字典中，作为 ‘bind_key’ 键值。了解这个 很重要，因为当你想要直接创建一个表对象时，你会需要把它放在那:</p>
<figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">user_favorites = db.Table(<span class="string">'user_favorites'</span>,</span><br><span class="line">    db.Column(<span class="string">'user_id'</span>, db.Integer, db.ForeignKey(<span class="string">'user.id'</span>)),</span><br><span class="line">    db.Column(<span class="string">'message_id'</span>, db.Integer, db.ForeignKey(<span class="string">'message.id'</span>)),</span><br><span class="line">    info=&#123;<span class="string">'bind_key'</span>: <span class="string">'users'</span>&#125;</span><br><span class="line">)</span><br></pre></td></tr></table></figure>

<h3 id="flask数据库配置"><a href="#flask数据库配置" class="headerlink" title="flask数据库配置"></a>flask数据库配置</h3><figure class="highlight python"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">from</span> flask <span class="keyword">import</span> Flask</span><br><span class="line"><span class="keyword">from</span> flask_script <span class="keyword">import</span> Manager</span><br><span class="line"><span class="keyword">from</span> flask_sqlalchemy <span class="keyword">import</span> SQLAlchemy</span><br><span class="line"><span class="keyword">from</span> flask_migrate <span class="keyword">import</span> Migrate</span><br><span class="line"><span class="keyword">from</span> flask_migrate <span class="keyword">import</span> MigrateCommand</span><br><span class="line"> </span><br><span class="line"><span class="comment">#创建应用实例</span></span><br><span class="line">app = Flask(__name__)</span><br><span class="line"> </span><br><span class="line">manage = Manager(app)</span><br><span class="line"> </span><br><span class="line"><span class="comment">#配置数据库(mysql)</span></span><br><span class="line">app.config[<span class="string">'SQLALCHEMY_DATABASE_URI'</span>]=<span class="string">"mysql+pymysql://root:123456@localhost:3306/flask_1805"</span></span><br><span class="line"> </span><br><span class="line"><span class="comment"># # 配置数据连接地址</span></span><br><span class="line"><span class="comment"># base_dir = os.path.dirname(__file__)</span></span><br><span class="line"><span class="comment"># database_uri = 'sqlite:///' + os.path.join(base_dir, 'data.sqlite')</span></span><br><span class="line"><span class="comment"># database_uri = 'mysql+pymysql://username:password@hostname/database'</span></span><br><span class="line"> </span><br><span class="line"><span class="comment">#禁止数据的修改追踪(需要消耗资源)</span></span><br><span class="line">app.config[<span class="string">'SQLALCHEMY_TRACK_MODIFICATIONS'</span>] = <span class="literal">False</span></span><br><span class="line"> </span><br><span class="line"> </span><br><span class="line"><span class="comment">#创建数据库操作对象</span></span><br><span class="line">db = SQLAlchemy(app)</span><br><span class="line"> </span><br><span class="line"><span class="comment">#创建数据库迁移对象</span></span><br><span class="line">migrate = Migrate(app=app,db=db)</span><br><span class="line"> </span><br><span class="line"><span class="comment">#将迁移命令添加到终端</span></span><br><span class="line">manage.add_command(<span class="string">'db'</span>,MigrateCommand)</span><br><span class="line"> </span><br><span class="line"><span class="comment">#创建Model类</span></span><br><span class="line"><span class="class"><span class="keyword">class</span> <span class="title">School</span><span class="params">(db.Model)</span>:</span></span><br><span class="line">    <span class="comment">#给表重命名</span></span><br><span class="line">    _tablename_ = <span class="string">'school'</span></span><br><span class="line"> </span><br><span class="line">    id = db.Column(db.Integer,primary_key=<span class="literal">True</span>)</span><br><span class="line">    name = db.Column(db.String(<span class="number">20</span>), unique=<span class="literal">True</span>)</span><br><span class="line"><span class="keyword">if</span> __name__ == <span class="string">'__main__'</span>:</span><br><span class="line">    manage.run()</span><br></pre></td></tr></table></figure>

<h3 id="centos7解压zip文件"><a href="#centos7解压zip文件" class="headerlink" title="centos7解压zip文件"></a>centos7解压zip文件</h3><figure class="highlight shell"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">sudo yum install -y unzip zip</span><br><span class="line">unzip filename.zip</span><br></pre></td></tr></table></figure>


    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/mariadb/" rel="tag"># mariadb</a>
              <a href="/tags/chinesepoetry/" rel="tag"># chinesepoetry</a>
              <a href="/tags/json/" rel="tag"># json</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2019/12/30/009-CentOS7%E5%AE%89%E8%A3%85MariaDB/" rel="prev" title="009-CentOS7安装MariaDB">
      <i class="fa fa-chevron-left"></i> 009-CentOS7安装MariaDB
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/01/01/014-JS%E9%9A%8F%E6%9C%BA%E4%B8%AD%E6%96%87%E5%AD%97%E7%AC%A6%E5%8F%8AVue%E4%B8%8EFlask%E5%AD%97%E7%95%8C%E7%AC%A6%E4%BF%AE%E6%94%B9/" rel="next" title="014-JS随机中文字符及Vue与Flask字界符修改">
      014-JS随机中文字符及Vue与Flask字界符修改 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#直接使用SQL"><span class="nav-text">直接使用SQL</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#flask配置多个数据库"><span class="nav-text">flask配置多个数据库</span></a><ol class="nav-child"><li class="nav-item nav-level-3"><a class="nav-link" href="#配置"><span class="nav-text">配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#引用binds"><span class="nav-text">引用binds</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#flask数据库配置"><span class="nav-text">flask数据库配置</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#centos7解压zip文件"><span class="nav-text">centos7解压zip文件</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="liupan"
      src="/images/avatar.gif">
  <p class="site-author-name" itemprop="name">liupan</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">20</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">28</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="feed-link motion-element">
    <a href="/atom.xml" rel="alternate">
      <i class="fa fa-rss"></i>RSS
    </a>
  </div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://github.com/facetothesea" title="GitHub → https:&#x2F;&#x2F;github.com&#x2F;facetothesea" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>GitHub</a>
      </span>
      <span class="links-of-author-item">
        <a href="/mailto:hbxgliupan@sina.com" title="E-Mail → mailto:hbxgliupan@sina.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2020</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">liupan</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> 强力驱动 v4.0.0
  </div>
  <span class="post-meta-divider">|</span>
  <div class="theme-info">主题 – <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> v7.5.0
  </div>

        








        
      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>
<script src="/js/utils.js"></script><script src="/js/motion.js"></script>
<script src="/js/schemes/pisces.js"></script>
<script src="/js/next-boot.js"></script>



  




  <script src="/js/local-search.js"></script>













  

  

  

</body>
</html>
